<template>
	<Table :datas="datas" :border="border" :checkbox="checkbox" :stripe="stripe" :loading="loading">
		<TableItem title="序号" prop="$serial" v-if="serial"></TableItem>
		<TableItem title="单号" prop="numss" align="left"></TableItem>
		<TableItem title="检修系统" prop="system" align="left"></TableItem>
		<TableItem title="检修时间" prop="time" align="left"></TableItem>
		<TableItem title="检修单位" prop="address" align="left"></TableItem>
		<TableItem title="检修内容" prop="content" align="left"></TableItem>
		<div slot="empty">暂无检修数据</div>
	</Table>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				border: false,
				stripe: false,
				checkbox: false,
				serial: false,
				loading: false,
				datas: []
			};
		},
		methods:{
		},
		mounted() {
			var that = this;
			var ss = JSON.parse(sessionStorage.getItem("t"));
			for (var i = 0; i < ss.length; i++) {
				that.datas.push({
					id: ss[i].jxCompanyId,
					numss: ss[i].jxdId,
					system: ss[i].jxSys,
					time: String(ss[i].jxTime).substring(0,10),
					address: sessionStorage.getItem("namesss"),
					content: ss[i].jxContent
				});
			}
		}

	}
</script>

<style>
	.h-table {
		margin-left: 30px;
		margin-top: 30px;
	}
</style>
